package com.ty.game.main.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.Serializable;

/**
 * @author: Troy.Chen(失足程序员, 15388152619)
 * @version: 2021-07-15 13:46
 **/
@Controller
public class Test implements Serializable {

    public int c = 1;

    @ResponseBody
    @RequestMapping("/hello")
    public String hello() {
        c++;
        return "Hello World!22bbb,4444,,,," + c;
    }

    @RequestMapping(value = "/index")
    public String index() {
        return "index";
    }

    @RequestMapping(value = "/loginIn")
    public String login(String name, String password) {
        return "success";
    }

}
